home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_236 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  805 b   |  29 lines

  1. on(press){
  2.    if(_root.micon._currentframe == 24 || _root.micon._currentframe == 25 || _root.micon._currentframe == 30)
  3.    {
  4.       _root.indicount = 100;
  5.       if(_root.even34 == 0)
  6.       {
  7.          _root.indialogue = "Why would I spoil Ms Aventez\'s fine cooking?";
  8.       }
  9.       else
  10.       {
  11.          i = 1;
  12.          while(i < 40)
  13.          {
  14.             if(_root.inven["box" + i]._currentframe == 23)
  15.             {
  16.                _root.inven["box" + i].gotoAndStop(1);
  17.             }
  18.             i++;
  19.          }
  20.          gotoAndStop(1);
  21.          _root.indialogue = "This will teach Sean to keep his oversized fingers out of people\'s food.";
  22.          _root.sfx.gotoAndStop(3);
  23.          _root.poison1 = 1;
  24.          _root.poison2 = 1;
  25.          _root.poison3 = 1;
  26.       }
  27.    }
  28. }
  29.